package com.wen.config.EquipmentFilter;

import com.wen.entry.bean.Property;

// 过滤指定属性等级
public class PropertyLevelFilter implements Filter<Property> {

    private final Integer[] level;

    public PropertyLevelFilter(Integer... level) {
        this.level = level;
    }

    @Override
    public boolean test(Property property) {
        for (Integer it : level) {
            if (it.equals(property.getLevel()))
            return true;
        }
        return false;
    }
}
